package factory;

import factory.pizza.CheesePizza;
import factory.pizza.NYStyleVeggiePizza;
import factory.pizza.Pizza;

public class NYStylePizzaStore extends PizzaStore{
    @Override
    Pizza createPizza(String type) {
        if(type.equals("cheese")){
            return new CheesePizza();
        }else if(type.equals("veggie")){
            return new NYStyleVeggiePizza();
        }
        else return null;
    }
}
